package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.PersonGroup;
import com.zhijian.medical.entity.vo.request.PersonGroupSearchVo;
import com.zhijian.medical.entity.vo.response.PersonGroupVo;

import java.util.List;

public interface PersonGroupMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PersonGroup record);

    int insertSelective(PersonGroup record);

    PersonGroup selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PersonGroup record);

    int updateByPrimaryKey(PersonGroup record);

    int count(PersonGroupSearchVo personGroupSearchVo);

    List<PersonGroupVo> selectList(PersonGroupSearchVo personGroupSearchVo);

    PersonGroupVo selectVoById(Long id);

    /**
     * 根据人员id查询所有的部门id
     *
     * @param personId
     * @return
     */
    List<Long> selectGroupIdsByPersonId(Long personId);
}